package com.iweb.model;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;

import java.io.Serializable;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 频道
 * </p>
 *
 * @author jack
 * @since 2020-05-15
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("tb_channel")
public class Channel extends Model<Channel> {

    private static final long serialVersionUID = 1L;

    /**
     * ID
     */
    @TableId("id")
    private String id;

    /**
     * 频道名称
     */
    @TableField("name")
    private String name;

    /**
     * 状态
     */
    @TableField("state")
    private String state;

    @TableField("route")
    private String route;

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
